<?php
// 本类由系统自动生成，仅供测试用途
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {
    public function init(){
    	if(!session('?user_id')){
    		$this->redirect('Login/login');
    	}
    	$indexweb=M('indexweb');
    	$info=$indexweb->where("id=1")->select();
    	$this->assign('logo_img',$info[0]['logo_img']);
        $this->assign('index_silde',$info[2]['files[]']);
    	$this->assign('C',CONTROLLER_NAME);
    	$this->assign('A',ACTION_NAME);
    }
}